#include<stdlib.h>
#include<stdio.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<unistd.h>

int main(int argc,char **argv){

   int ff = dup(1);
   FILE *fp = fopen("/tmp/deamon","w");
    while (1)
    {
        fprintf(stdout,"time: %s\n","abcd");
        fflush(NULL);
        sleep(1);
    }



   return 0;
}